//
//  WmcWechatShare.h
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/4/14.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface WmcWechatShare : NSObject

/// 分享文本
/// @param title 标题
/// @param description 描述
/// @param scene 场景
/// @param completion 结果
+ (void)shareText:(NSString *)title
      description:(NSString * _Nullable)description
            scene:(int)scene
       completion:(void(^)(BOOL))completion;

/// 分享图片
/// @param image 图片
/// @param title 标题
/// @param description 描述
/// @param messageExt 额外信息
/// @param scene 场景
/// @param completion 结果
+ (void)shareImage:(UIImage *)image
             title:(NSString * _Nullable)title
       description:(NSString * _Nullable)description
        messageExt:(NSString * _Nullable)messageExt
             scene:(int)scene
        completion:(void(^)(BOOL))completion;

/// 分享链接
/// @param link 链接
/// @param title 标题
/// @param description 描述
/// @param thumbImage 缩略图
/// @param scene 场景
/// @param completion 结果
+ (void)shareLink:(NSString *)link
            title:(NSString *)title
      description:(NSString * _Nullable)description
       thumbImage:(UIImage * _Nullable)thumbImage
            scene:(int)scene
       completion:(void(^)(BOOL))completion;

/// 分享文件
/// @param path 文件路径，不能超过10M
/// @param fileExtension 后缀
/// @param title 标题
/// @param description 描述
/// @param thumbImage 缩略图
/// @param scene 场景
/// @param completion 结果
+ (void)shareFile:(NSString *)path
    fileExtension:(NSString *)fileExtension
            title:(NSString *)title
      description:(NSString *_Nullable)description
       thumbImage:(UIImage * _Nullable)thumbImage
            scene:(int)scene
       completion:(void(^)(BOOL))completion ;

+ (BOOL)isInstalled;

@end

NS_ASSUME_NONNULL_END
